package com.example.commons.util;


import java.io.Serializable;

/**
 * 数据传输对象
 * @param <T>
 */
public class Dto<T> implements Serializable {
    public Dto() {
    }

    public Dto(T data, String status, String msg) {
        this.data = data;
        this.status = status;
        this.msg = msg;
    }

    /**
     * 封装的数据
     */
    private T data;
    /**
     * 状态码
     */
    private String status;
    /**
     * 消息
     */
    private String msg;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
